[index]

SetUpMenus Message

Syntax

on setUpMenus
end setUpMenus Sent to the current card

Description

The setUpMenus message is generated when the user pulls down an Oracle Media Objects menu. With a setUpMenus handler, the developer can dynamically change the appearance or contents of a user-defined menu.

Notes

Excessive use of the setUpMenus message may lead to menu performance degradation. Quotes are stripped out of custom menus and menu items.

Examples

This example demonstrates how to create a dynamic menu that lists all of the objects on the current card. When an object is selected from the menu, the script editing window of the object is invoked. create menu "Objects" Then, add the following handlers to the stack script: on setUpMenus global g_current_card this card then put empty into the_Objects in this card after the_Objects end repeat the_Objects g_current_card end if end setUpMenus on doMenu menu_item, menu_name if menu_name is "Objects" then end if pass doMenu
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.